package nc.ui.pf.changedir;

import nc.ui.pf.change.VOConversionUI;
import nc.vo.pf.change.UserDefineFunction;

public class CHG36LGTOF5 extends VOConversionUI {

	public CHG36LGTOF5(){
		
	}
	public String getAfterClassName(){
	        return "nc.vo.cmp.change.Fts36LGTOF5Changer";
	}
	  public String[] getField()
	    {
	        return (new String[] {
	        		"H_djlxbm->DESTBILLTYPE",
//	        		"H_lrr->SYSOPERATOR",
	                "H_dwbm->H_pk_payunit", 
	                "B_bzbm->H_pk_currtype",
	                "H_djrq->H_dapprovedate",
	                "B_billdate->H_dapprovedate",
	                "B_zy->B_memo",
	                "B_bfyhzh->B_pk_accid",
	                "B_jfybje->B_money",
//	                "B_jfbbje->B_localmoney",
	                "B_jffbje->B_assmoney",
	                
	                "B_lrr->B_vapproveid",
	                "B_ddlx->H_pk_igather",
//	                "B_bbhl->B_localrate",
	                "B_szxmid->B_pk_costsubj",
	                "H_xslxbm->H_pk_busitype",
	                "B_fbhl->B_assrate"
	        });
	    }
	   public String[] getFormulas()
	    {
	        return new String[]{
	        		"H_ywbm->getdjlx( H_dwbm , H_djlxbm)",
	                "H_djkjnd->getKJND( H_djrq )",
	                "H_djkjqj->getKJQJ( H_djrq  )",
	                "H_shkjnd->getKJND( H_djrq )",
	                "H_shkjqj->getKJQJ( H_djrq  )",
	                "B_hbbm->getHBBM(H_pk_gatcenter,H_dwbm)",
	                "H_lybz->\"5\"",
	                "H_pzglh->\"2\"",
	                "H_qcbz->\"N\"",
	                "H_djdl->\"fj\"",
	                "H_djzt->\"-99\"",
	                "H_transientFlag->\"7\"",
	                "B_tradertype->\"0\"",
	        		"B_jsfsbm->\"36LG\""
	                    };
	    }
	   public UserDefineFunction[] getUserDefineFunction() {
	        try {
	            UserDefineFunction userdefinefunction = new UserDefineFunction();
	            userdefinefunction.setClassName("nc.bs.arap.change.PubChangeProxy");
	            userdefinefunction.setMethodName("getKJQJ");
	            userdefinefunction.setReturnType(Class.forName("java.lang.String"));
	            userdefinefunction.setArgTypes(new Class[] { Class
	                    .forName("java.lang.String") });
	            userdefinefunction.setArgNames(new String[] { "&d1" });
	            UserDefineFunction userdefinefunction1 = new UserDefineFunction();
	            userdefinefunction1.setClassName("nc.bs.arap.change.PubChangeProxy");
	            userdefinefunction1.setMethodName("getKJND");
	            userdefinefunction1
	                    .setReturnType(Class.forName("java.lang.String"));
	            userdefinefunction1.setArgTypes(new Class[] { Class
	                    .forName("java.lang.String") });
	            userdefinefunction1.setArgNames(new String[] { "&newdate" });
	            UserDefineFunction userdefinefunction2 = new UserDefineFunction();
	            userdefinefunction2.setClassName("nc.bs.arap.change.PubChangeProxy");
	            userdefinefunction2.setMethodName("getdjlx");
	            userdefinefunction2
	                    .setReturnType(Class.forName("java.lang.String"));
	            userdefinefunction2.setArgTypes(new Class[] {
	                    Class.forName("java.lang.String"),
	                    Class.forName("java.lang.String") });
	            userdefinefunction2
	                    .setArgNames(new String[] { "&corp", "&djlxbm" });
	            UserDefineFunction userdefinefunction3 = new UserDefineFunction();
				userdefinefunction3
						.setClassName("nc.bs.arap.change.PubChangeProxy");
				userdefinefunction3.setMethodName("getHBBM");
				userdefinefunction3
						.setReturnType(Class.forName("java.lang.String"));
				userdefinefunction3.setArgTypes(new Class[] {
						Class.forName("java.lang.String"),
						Class.forName("java.lang.String") });
				userdefinefunction3
						.setArgNames(new String[] { "&pk_settlecenter,&pk_corp" });
	            UserDefineFunction auserdefinefunction[] = new UserDefineFunction[4];
	            auserdefinefunction[0] = userdefinefunction;
	            auserdefinefunction[1] = userdefinefunction1;
	            auserdefinefunction[2] = userdefinefunction2;
	            auserdefinefunction[3] = userdefinefunction3;
	            return auserdefinefunction;
	        } catch (ClassNotFoundException classnotfoundexception) {
	            classnotfoundexception.printStackTrace();
	        }
	        return null;
	    }
}
